home *** CD-ROM | disk | FTP | other *** search
- //
- // Visopsys
- // Copyright (C) 1998-2007 J. Andrew McLaughlin
- //
- // This library is free software; you can redistribute it and/or modify it
- // under the terms of the GNU Lesser General Public License as published by
- // the Free Software Foundation; either version 2.1 of the License, or (at
- // your option) any later version.
- //
- // This library is distributed in the hope that it will be useful, but
- // WITHOUT ANY WARRANTY; without even the implied warranty of
- // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
- // General Public License for more details.
- //
- // You should have received a copy of the GNU Lesser General Public License
- // along with this library; if not, write to the Free Software Foundation,
- // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- //
- // unistd.h
- //
-
- // This is the Visopsys version of the standard header file unistd.h
-
- #if !defined(_UNISTD_H)
-
- extern char *optarg;
- extern int optind, opterr, optopt;
-
- // For seeking using lseek()
- #define SEEK_SET 0x01
- #define SEEK_CUR 0x02
- #define SEEK_END 0x03
-
- // This contains the size_t definition
- #include <stddef.h>
-
- // This contains the off_t definition
- #include <sys/types.h>
-
- // This contains the 'struct stat' definition
- #include <sys/stat.h>
-
- int close(int);
- int getopt(int, char *const[], const char *);
- off_t lseek(int, off_t, int);
- size_t read(int, void *, size_t);
- int stat(const char *, struct stat *);
- void swab(const void *, void *, ssize_t);
- size_t write(int, const void *, size_t);
-
- #define _UNISTD_H
- #endif
-